<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      th:replace="fragments/layout(title='菜谱管理-添加',jsPaths='/static/js/food/menu/sample/add.js')">
<div class="right" th:fragment="right">
            <!--面包屑-->
            <div class="breadcrumb layui-bg-gray">
                <span class="layui-breadcrumb" lay-separator=">">
                    <a th:href="@{/}">首页</a>
                     <a href="/foodManage">菜谱管理</a>
                <a href="/foodSample">留样记录</a>
                    <a><cite>新增</cite></a>
                </span>
            </div>
            <!--主体内容区-->
            <div class="form-content">
                    <form class="layui-form" th:action="@{/foodSample/save}" method="post">
                        <div class="layui-form-item">
                            <label class="layui-form-label must">菜名</label>
                            <div class="layui-input-block">
                                <input type="text" name="foodName"  maxlength="10" lay-verify="required" placeholder="请输入菜名" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                      <!--  <div class="layui-form-item">
                            <label class="layui-form-label must">留样人</label>
                            <div class="layui-input-block">
                                <input type="text" name="sampleUser" maxlength="10"  lay-verify="required" placeholder="请输入留样人" autocomplete="off" class="layui-input">
                            </div>
                        </div>-->
                        <div class="layui-form-item" >
                            <div class="layui-row">
                                <label class="layui-form-label must">菜品图片</label>
                                <div class="layui-input-block">
                                    <div class="layui-upload">
                                        <div class="layui-upload-list">
                                            <img class="layui-upload-img" src="/static/imgs/imgup.png" id="img1">
                                            <input type="hidden" name="foodPhoto" class="hiddenIpt"  lay-verify="required">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button class="layui-btn  layui-btn-normal" lay-submit lay-filter="submitBtn">保存</button>
                                <a href="/foodSample" class="layui-btn layui-btn-primary">返回</a>
                            </div>
                        </div>
                    </form>
            </div>
        </div>
</html>